/****************************************************************************************************
* 版权所有： Copyright (c) 2015-2022 鑫光家纺. All rights reserved.
* 作    者： 半   饱
* 创建日期： 2022/8/8
* 界面功能： <#界面功能#>
****************************************************************************************************/

#import <Foundation/Foundation.h>
#import "BBAlertConfiguration.h"
#import "NSObject+BBAlertCategories.h"

NS_ASSUME_NONNULL_BEGIN

/// 回调事件
typedef void(^BBActionBlock)(void);

@interface BBAlertAction : NSObject

/// 按钮名称
@property (nonatomic,copy) NSString *actionTitle;

/// 按钮类型
@property (nonatomic,assign) BBAlertActionType actionType;

/// 点击按钮回调
@property (nonatomic,copy) BBActionBlock actionBlock;

/// 按钮图片
@property (nonatomic,strong) UIImage *actionIconImage;

/// 按钮图片显示位置
@property (nonatomic,assign) BBAlertActionEdgeInsetsStyle actionEdgeInsetStyle;

/// 文字与图片的间距
@property (nonatomic,assign) CGFloat textAndImageSpace;
 
/// 实例化对象
/// @param actionTitle 按钮标题
/// @param actionType 按钮类型
/// @param actionBlock 按钮回调
+ (instancetype)alertActionWithActionTitle:(NSString *)actionTitle withActionType:(BBAlertActionType)actionType withActionBlock:(BBActionBlock)actionBlock;

/// 实例化对象
/// @param actionTitle 按钮标题
/// @param actionType 按钮类型
/// @param actionIconImage 按钮图片
/// @param actionEdgeInsetStyle 按钮图片与文字样式
/// @param textAndImageSpace 文字与图片之间的样式
/// @param actionBlock 按钮回调
+ (instancetype)alertActionWithActionTitle:(NSString *)actionTitle withActionType:(BBAlertActionType)actionType withActionIconImage:(UIImage *)actionIconImage withActionEdgeInsetStyle:(BBAlertActionEdgeInsetsStyle)actionEdgeInsetStyle withTextAndImageSpace:(CGFloat)textAndImageSpace withActionBlock:(BBActionBlock)actionBlock;
@end

NS_ASSUME_NONNULL_END
